package com.alibaba.aone.casestudy.service;

import java.util.List;

import com.alibaba.aone.casestudy.common.entity.Action;
import com.alibaba.aone.casestudy.common.entity.ActionConditions;

/**
 * 操作action的service接口
 * @author zll
 *
 */
public interface ActionService {

	/**
	 * 列出所有action
	 * @return Action的list
	 */
	public List<Action> listActions();

	/**
	 * 通过number查询action
	 * @param casestudy的number
	 * @return Action对象
	 */
	public Action getActionByNumber(String actionNo);
	
	/**
	 * 通过casestudyNumber获取相关action列表
	 * @param casestudy的number
	 * @return Action的list
	 */
	public List<Action> getActionsByCasestudyNo(String casestudyNo);
	
	/**
	 * 更新一个Action
	 * @param action对象
	 * @return 更新数目
	 */
	public int updateAction(Action action);
	
	public List<Action> search(ActionConditions actionConditions);

}